{{include file="public/header" /}}

{{include file="public/header_top_nav" /}}

{{include file="public/home_search" /}}

<!--个人中心页面 start -不需要body -->
{{include file="public/user_menu" /}}

{{if !empty($user)}}
<form class="am-form form-validation view-save" action="{{:MyUrl('index/personal/save')}}" method="POST" request-type="ajax-url" request-value="{{:MyUrl('index/personal/index')}}">
    <div class="col-lg-9  ftSize16">
        <div class="row hidden-xs">
            <div class="col-lg-12">
                <div class="labelTitle">Información Personal</div>
            </div>
        </div>
        <div class="row mTop50">
            <div class="col-lg-12 inFlex alignitemcenter">
                <div class="labelTitle">Correo Electrónico：</div>
                <div class="mLeft20"><input readonly="true" type="email" name="accounts" id="accounts" placeholder="Correo Electrónico" class="form-control inlineBlock wd400" value="{{$user['email']}}" data-validation-message="Error de Correo Electrónico" required /></div>

            </div>
        </div>
        <!--<div class="row mTop50">-->
            <!--<div class="col-lg-12 inFlex">-->
                <!--<div class="labelTitle">邮箱验证码：</div>-->
                <!--<div class="mLeft20">	<input type="number" name="verify" class="am-radius" placeholder="验证码" minlength="4" maxlength="4" data-validation-message="验证码格式 4 位数字" required /></div>-->
            <!--</div>-->
        <!--</div>-->
        <!--<div class="row mTop50">-->
            <!--<div class="col-lg-12 inFlex">-->
                <!--<div class="labelTitle">密码：</div>-->
                <!--<div class="mLeft20"><input type="password" name="new_pwd" class="form-control inlineBlock wd400"></input></div>-->
            <!--</div>-->
        <!--</div>-->
        <!--<div class="row mTop50">-->
            <!--<div class="col-lg-12 inFlex">-->
                <!--<div class="labelTitle">确认密码：</div>-->
                <!--<div class="mLeft20"><input type="password" name="confirm_new_pwd" class="form-control inlineBlock wd400"></input></div>-->
            <!--</div>-->
        <!--</div>-->
        <div class="row mTop50">
            <div class="col-lg-12 inFlex">
                <div class="labelTitle">Nombre y Apellido：</div>
                <div class="mLeft20"><input type="text" name="username" class="form-control inlineBlock wd400" value="{{$user['username']}}"></input></div>
            </div>
        </div>
        <div class="row mTop50">
            <div class="col-lg-12 inFlex">
                <div class="labelTitle">Número de Celular：</div>
                <div class="mLeft20"><input type="text" name="mobile" class="form-control inlineBlock wd400" value="{{$user['mobile']}}"></input></div>
            </div>
        </div>
        <div class="row mTop50">
          <div class="col-lg-12 inFlex">
            <div class="labelTitle">Nombre de Empresa：</div>
            <div class="mLeft20"><input type="text" class="form-control inlineBlock wd400" name="companyname" value="{{$user['companyname']}}"></input></div>
          </div>
        </div>
        {{if MyC('home_user_login_img_verify_state') eq 1}}
        <div class="row mTop20">
            <div class="col-lg-12 inFlex">
                <div class="labelTitle" id="noel"></div>
                <div class="mLeft20">
                    <input type="text" name="verify" minlength="4" maxlength="4" class="form-control inlineBlock" style="width: 150px;" placeholder="Código de Verificación" autocomplete="off" data-validation-message="Código de Verificación" required/>
                    <img src="{{:MyUrl('index/user/userverifyentry', ['type'=>'user_update'])}}" class="mLeft20" src="" width="120px" height="33px" onClick="this.src=this.src+'#'+Math.random();"/>
                </div>
            </div>
        </div>
        {{/if}}
        <div class="row mTop40">
            <div class="col-lg-8 inFlex jfyconter">
                <button type="submit" class="btn btn-primary" style="width: 100px;height: 40px;" data-am-loading="{loadingText:'En proceso...'}">Submission</button>
            </div>
        </div>
    </div>
</form>

<!-- verify win start -->
<div class="am-modal am-modal-no-btn" tabindex="-1" id="verify-win">
    <div class="am-modal-dialog am-radius">
        <div class="am-modal-hd">
            <a href="javascript:;" class="am-close am-close-spin" data-am-modal-close>&times;</a>
        </div>
        <div class="am-modal-bd">
            <div class="base">
                <input type="text" placeholder="Captcha" maxlength="4" id="verify-img-value" data-validation-message="Código de Verificación" class="am-form-field am-radius" />
                <div class="am-fl">
                    <img src="{{:MyUrl('index/safety/verifyentry')}}" class="am-radius c-p" id="verify-img" onClick="this.src=this.src+'#'+Math.random();" />
                    <a href="javascript:;" class="verify-tips" onClick="document.getElementById('verify-img').src='{{:MyUrl('index/safety/verifyentry')}}#'+Math.random();">Cambiar Captcha</a>
                </div>
            </div>
            <button type="button" class="am-btn am-btn-secondary am-radius am-btn-sm block btn-loading-example verify-submit-win-new" data-am-loading="{spinner:'circle-o-notch', loadingText:'Enviar...'}" data-win="1">Confirmar</button>
        </div>
    </div>
</div>
<!-- verify win end -->
{{/if}}


<!--个人中心页面 end -不需要body -->

{{include file="public/footer_nav" /}}

{{include file="public/footer" /}}

<script type='text/javascript' src="{{$public_host}}static/index/default/js/safety.js"></script>